<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>javascript 阶段</title>
</head>
<body>


    <script>
        // 外部循环  5 次 
            // 内部循环  3次
        var count = 0;//计数器变量

        for(var i = 1 ; i <=5 ; i ++){
            console.log("外:"+i);

            for(var j = 1 ; j <= 3 ; j ++){
                console.log("内部循环第"+j+"次");
                count ++;
            }
        }
        console.log(count);// 15


    </script>
</body>
</html>